@import './default.scss';
@import '~@angular/material/theming';
@include mat-core();
$material-primary: $color-primary;
$material-accent: $color-primary;
$material-warn: $color-error;
// 引入material公用的主题风格
$mat-primary: (
  1: $color-primary,
  contrast: (
    1: $light-primary-text,
  ),
);
$mat-accent: (
  1: $material-accent,
  contrast: (
    1: $light-primary-text,
  ),
);
$mat-warn: (
  1: $material-warn,
  contrast: (
    1: $light-primary-text,
  ),
);
// 自定义颜色
$my-app-primary: mat-palette($mat-primary, 1, 1, 1);
$my-app-accent: mat-palette($mat-accent, 1, 1, 1);
$my-app-warn: mat-palette($mat-warn, 1, 1, 1);

// 利用自定义颜色组装自定义主题
$my-app-theme: mat-light-theme($my-app-primary, $my-app-accent, $my-app-warn);
// 设置自定义主题，使其生效
@include angular-material-theme($my-app-theme);
